package edu.pku.sei.modeler.neditor.part.policy;

import org.eclipse.gef.commands.Command;
import org.eclipse.gef.editpolicies.ComponentEditPolicy;
import org.eclipse.gef.requests.GroupRequest;

import edu.pku.sei.modeler.neditor.ui.CommandCreationFactory;


public class NodeDeleteEditPolicy extends ComponentEditPolicy {
	public Command createDeleteCommand(GroupRequest deleteRequest) {
		return CommandCreationFactory.getDeleteCommand(getHost().getParent(),getHost());
	}
}
